package com.finance.borrower;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: Apollo
 * @Date: 2021/4/10
 * @Description: 工作信息
 */
@Entity
@Table(name = "work_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WorkInfo implements Serializable {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 标识
     */
    private String code;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 是否删除 1:否 2:是
     */
    private Integer isDelete;

    /**
     * 公司名称
     */
    private String name;

    /**
     * 工作地址
     */
    private String address;

    /**
     * 薪资范围 1:1000-3000 2:3000-5000 3:5000-10000 4:10000-20000 5:20000-50000 6:50000-100000 7:100000-150000
     */
    private Integer salary;

    /**
     * 借款人信息标识
     */
    private String borrowerInfoCode;






    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CODE = "code";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_NAME = "name";

    public static final String COL_ADDRESS = "address";

    public static final String COL_SALARY = "salary";

    public static final String COL_BORROWER_INFO_CODE = "borrower_info_code";

}